a = set()

for i in range(1, 6):
    a1= input(f"请输入第{i}位好友的姓名与手机号码: ")
    b, c= a1.split()
    a.add((b, c))

print("\n您的通讯录：")
for e in a:
    print(f"{e[0]}{e[1]}")